package net.xju_3_4.entity;

public class Teacher {
    private Integer id;
    private String teacherName;
    private Integer age;
    private String course;

    public Teacher(Integer id, String teacherName, Integer age, String course) {
        this.id = id;
        this.teacherName = teacherName;
        this.age = age;
        this.course = course;
    }

    public Teacher() {
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getTeacherName() {
        return teacherName;
    }

    public void setTeacherName(String teacherName) {
        this.teacherName = teacherName;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    public String getCourse() {
        return course;
    }

    public void setCourse(String course) {
        this.course = course;
    }

    @Override
    public String toString() {
        return "Teacher{" +
                "id=" + id +
                ", teacherName='" + teacherName + '\'' +
                ", age=" + age +
                ", course='" + course + '\'' +
                '}';
    }
}
